package com.yaps.petstore.stateless.customer;

import com.yaps.petstore.entity.Address;
import com.yaps.petstore.entity.customer.Customer;

import javax.ejb.Local;

/**
 * @author Antonio Goncalves
 */
@Local
public interface CustomerLocal {

    // ======================================
    // =          Methodes publiques        =
    // ======================================
    Customer authenticate(String login, String password);

    Customer createCustomer(Customer customer, Address homeAddress);

    Customer findCustomer(Long customerId);

    Customer updateCustomer(Customer customer, Address homeAddress);
}